<template>
	<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
	<div class="content">
		<div class="infos" v-html="info.neirong">
			
		</div>
		<back-img :isopBg='true'></back-img>
	</div>
	</van-pull-refresh>
</template>

<script>
	export default {
		data() {
			return {
				isLoading:false,
				info:{},
			};
		},
		created() {
			this.getInfo()
		},
		components: {

		},
		methods: {
			onRefresh() {
				this.getInfo()
				setTimeout(() => {
					this.isLoading = false;
				}, 500);
			},
			getInfo(){
				let url = "/api/his/his_intro?xuhao=Y04";
				this.$axios.get(url).then(res => {
					console.log(res)
					this.info=res.ack_info
				})
				.catch(err => {});
			},
			toPageLink(url){
				this.$router.push({
					path:url,
					query:{},
				})
			}
		}
	};
</script>

<style lang="less" scoped>
	.content{
		padding: 12px 16px;
		min-height: 100vh;
		background-color:#f0f8f8;
		padding-bottom: calc(50px + env(safe-area-inset-bottom));
	    .infos{
			width: 100%;
			border-radius: 6px;
			min-height:80vh;
			padding: 12px;
			background: #fff;
			border: 1px solid #005500;
			line-height: 24px;
		}
	}
</style>